package org.csu.demo.db.persistence;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.csu.demo.db.domain.Score;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("ScoreMapper")
@Mapper
public interface ScoreMapper extends BaseMapper<Score> {
    @Select("SELECT * FROM score WHERE student_id = #{studentId}")
    List<Score> selectByStudentId(String studentId);
}
